Classes | |
| class | AndroidPlatform |
| class | EmscriptenPlatform |
| struct | GLFunctionPointers |
| class | OpenGLPlatform |
| The OpenGL platform interface that is used by the OpenGL backend to interact with the platform. More... | |
| class | Platform |
| Kanzi platform interface definition. More... | |
| class | QnxPlatform |
| QNX Platform class. More... | |
| class | StubPlatform |
| Stub Platform class. More... | |
| struct | SurfaceBits |
| Describes the bit representation of a surface buffer. More... | |
| struct | SurfaceProperties |
| Describes the properties of a surface. More... | |
| class | WaylandPlatform |
| class | Win32Platform |
| class | X11Platform |
Typedefs | |
| template<typename T_Return = void, typename... T_Args> | |
| using | function_ptr |
| using | NativeSurfaceHandle |
| Information necessary for native surfaces such as windows. | |
Enumerations | |
| enum class | ColorSpace : uint8_t { sRGB , DisplayP3 , BT2020 , HDR10 , Count } |
| Defines the color space options for an image or frame buffer. More... | |
| enum class | MultisampleCount : uint8_t { NoMSAA , MSAAx2 , MSAAx4 , MSAAx8 , MSAAx16 , MSAAx32 } |
| Defines the available numbers of samples for multisample anti-aliasing (MSAA). More... | |
| enum class | PlatformFeatureId { sRGBSurface , Count } |
| Defines the platform features that can be present or missing on a specific platform. More... | |
| enum class | PresentMode : uint8_t { Immediate , FIFO , FIFORelaxed , Mailbox } |
| Defines the options for surface present mode. More... | |
| enum class | SwapBehavior : uint8_t { Preserved , Destroyed , Unspecified } |
| Defines the options for surface swap behavior. More... | |
Functions | |
| shared_ptr< OpenGLPlatform > | createDefaultOpenGLPlatform (OpenGLPlatform::InitializationInfo &&info) |
| Creates the default OpenGL platform implementation for the current platform. | |
| void | createDefaultPlatform (const SystemConfiguration &configuration) |
| Creates default Platform instance singleton. | |
| void | destroyDefaultPlatform () |
| Destroys default Platform instance singleton. | |
| KZ_NO_DISCARD SharedLockedPtr< Platform > | getDefaultPlatform () |
| Queries default Platform instance singleton. | |
| template<typename Loader > | |
| auto | loadGlFunction (platform::OpenGLPlatform &platform) |
| Acquires a GL function pointer. | |
| MultisampleCount | toMultisampleCount (size_t sampleCount) |
| Gets kanzi graphics multi sample count from an integral sample count. | |
| string | toString (PlatformFeatureId feature) |
| Converts a PlatformFeatureId to a string. | |
Information necessary for native surfaces such as windows.
The underlying objects are platform specific, such as HWND on Windows, ANativeWindow* on Android, xcb_window_t on X11, wl_surface* on Wayland and so on.
|
strong |
|
strong |
|
strong |
Defines the options for surface present mode.
| auto kanzi::platform::loadGlFunction | ( | platform::OpenGLPlatform & | platform | ) |
Acquires a GL function pointer.
If GL function is defined, returns a pointer to it. If GL function is not defined, acquires the pointer by using platform-specific xxxGetProcAddress().
| Loader | GL function loader generated by KANZI_GENERATE_GL_LOADER(). |
| platform | Platform to use. |
|
inline |
Converts a PlatformFeatureId to a string.
| feature | The platform feature id. |
|
inline |
Gets kanzi graphics multi sample count from an integral sample count.
| sampleCount | The integral sample count. |
| void kanzi::platform::createDefaultPlatform | ( | const SystemConfiguration & | configuration | ) |
Creates default Platform instance singleton.
This function is thread-safe. This function blocks until all pointers returned from getDefaultPlatform() have been destructed.
| configuration | System configuration. |
| void kanzi::platform::destroyDefaultPlatform | ( | ) |
Destroys default Platform instance singleton.
This function is thread-safe. This function blocks until all pointers returned from getDefaultPlatform() have been destructed.
| KZ_NO_DISCARD SharedLockedPtr< Platform > kanzi::platform::getDefaultPlatform | ( | ) |
Queries default Platform instance singleton.
This function is thread-safe. This function blocks while createDefaultPlatform() or destroyDefaultPlatform() is executing.